import request from './index'

function login1(name) {
    let data = {
        name
    }
    const result = request({
        url: '/user/login1',
        method: 'post',
        data
    })
    return result
}

function login2(name) {
    let data = {
        name
    }
    const result = request({
        url: '/user/login2',
        method: 'get',
        params: data
    })
    return result
}

function login3(name) {
    const result = request({
        url: '/user/login3/'+name,
        method: 'get'
    })
    return result
}

export default {
    login1,
    login2,
    login3
}